package com.xjtu.chapter06;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/18 16:14
 */
public class TestException_3 {
    //非检查型异常用try-catch句型处理
    public static void main(String[] args) {
        int[]a=new int[5];
        try{
            a[6]=5;
        }
        catch(ArrayIndexOutOfBoundsException e){
            System.out.println("数组下标越界");
        }
    }
}
